﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Shared/DefaultMaster.master"
    AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Churchtoolkit.Default" %>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="DefaultContent">
    <script src="Scripts/jquery.countdown.js" type="text/javascript"></script><script
        src="Scripts/jquery-fns.js" type="text/javascript"></script>
    <asp:Repeater ID="rptnews" runat="server">
        <ItemTemplate>
            <asp:Panel runat="server" Width="40%">
            <h3>
                <asp:Label runat="server"><%# Eval("Title") %></asp:Label>
            </h3>
            <br />
            <%# Eval("Description")%>
            <asp:HyperLink runat="server" Target="_blank" NavigateUrl='<%# Eval("Link")%>'>more</asp:HyperLink>
            <hr />
            </asp:Panel>
        </ItemTemplate>
    </asp:Repeater>
    <script type="text/javascript">
        $(function () {
            var austDay = new Date();
            austDay = new Date(2010, 9, 29);
            $('#defaultCountdown').countdown({ until: austDay, layout: '{dn} {dl}, {hn} {hl}, {mn} {ml}, and {sn} {sl}' });
            $('#year').text(austDay.getFullYear());
        });
    </script>
    <center style="padding: 25px; color: Black">
        <div class="ui-corner-all" style="width: 505px; height: 152px; left: 50px; top: 30px;">
            <div style="width: 480px; height: 130px; left: 50px; top: 30px; padding: 10px;" class="ui-widget ui-widget-content ui-corner-all">
                <h2>
                    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                    <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
                    Estimated Time Remaining Before Launch</h2>
                <div id="defaultCountdown" style="font-size: large; padding-top: 25px">
                </div>
            </div>
        </div>
    </center>
    <asp:Button runat="server" Text="Test popup"  OnClick="testpopup_Click"/>
    <ct:Window runat="server" ID="testpopup">
        <ContentTemplate>
            <h1>hello</h1>
        </ContentTemplate>
    </ct:Window>
</asp:Content>
